package 每日一题;

import java.util.Arrays;
import java.util.Scanner;

public class 计算糖果 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=sc.nextInt();
        int d=sc.nextInt();

        int A=(a+c)/2;
        int B1=(c-a)/2;
        int B2=(b+d)/2;
        int C=(d-b)/2;

        if (B1==B2) {
            System.out.println(A+" "+B1+" "+C);
        }else {
            System.out.println("No");
        }
    }

    private static int[] fun(int[] arr) {
        int a=(arr[0]+arr[2])/2;//错误原因：奇数除以2，向下取整，a存在误差
        int b=arr[2]-a;
        int c=arr[3]-b;

        int[] res={a,b,c};
        return res;
    }
}
